<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>

<jsp:include page="/public/template/header.jsp" />


<style type="text/css">
input.text 
{
	width: 400px;
}

input.button {
	width: 80px;
}

table,td,tr,th {
	border-style: solid;
	border-width: 0px;
	border-color: black;
	margin: 0;
	border-collapse: collapse;
	padding: 6px;
}

#content {
	padding: 10px;
}
</style>


<div id="content">

	<h1>Resources: Create a Resource</h1>

	<form action="<c:url value='/config/resources/create'/>" method="post">
		<div style="position: absolute; top: 150px; width: 350px; ">

			<table style="position: absolute; width: 90%">

				<tr>
					<td>URI:</td>
					<td><input name="er.uri" type="text" style="width: 400px"/></td>
				</tr>

				<tr>
					<td>RDF Type</td>
					<td>
						<input id="type" type="text" name="er.rdfType" style="width: 400px"/>
					</td>
				</tr>

				<tr>
					<td>Type:</td>
						<td><select  name="er.isStatic">
							<option selected value="true">Static</option>
							<option value="false">Dynamic</option>
						</select>
					</td>
				</tr>

				<tr>
					<td><input type="submit" value="Create" style="width: 150px; height: 30px;" /></td>
				</tr>
		
			</table>
		</div>
	</form>
</div>



<script type="text/javascript">
	$(function() {
		var rdfTypes = ${rdfTypes};
		
		$("#type").autocomplete({
			minLength : 0,
			source : rdfTypes,
		});

		
	});
</script>


<jsp:include page="/public/template/footer.jsp" />
